﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BarcodeProductManagement.Models;

namespace BarcodeProductManagement.Controllers
{
    public class AuthorityController : Controller
    {
        /// <summary>
        /// 系统中用户的列表
        /// </summary>
        /// <returns></returns>
        public ActionResult UserList()
        {
            return View();
        }

        /// <summary>
        /// 修改某人的authority
        /// </summary>
        /// <returns></returns>
        [AcceptVerbs(HttpVerbs.Get)]
        public ActionResult AssignAuthority()
        {
            return View();
        }

        /// <summary>
        /// 接收修改某人的authority的数据
        /// </summary>
        /// <returns></returns>
        [AcceptVerbs(HttpVerbs.Post)]
        public ViewResult AssignAuthority(AssignAuthorityModel model)
        {
            return View("UserList");
        }

        /// <summary>
        /// 库管员是否可以查看进货单
        /// </summary>
        /// <returns></returns>
        public ActionResult StoragerWhetherViewPurchaseOrder()
        {
            return View();
        }
    }
}
